/**
 * Created By zhangQ 2018/2/16
 * 场站相关
 */
import axiosUtils from '@api/env/axiosEnv'

let customAxios = axiosUtils._initAxios()

export function getStationMemberList (param) {
  return customAxios({
    url: '/getStationMemberList',
    method: 'post',
    data: {
      railwayBureauCode: param.railwayBureauCode,
      transportCenter: param.transportCenter,
      stationCode: param.stationCode,
      keysOfNull: 'railwayBureauCode, transportCenter, stationCode'
    }
  })
}

// 场站点亮计划
export function getFreightCenterList () {
  return customAxios({
    url: '/light/getFreightCenterList',
    method: 'post'
  })
}

export function getCategoryList () {
  return customAxios({
    url: '/light/getCategoryList',
    method: 'post'
  })
}

export function getStationInfoList (param) {
  return customAxios({
    url: '/light/getStationInfoList',
    method: 'post',
    data: param
  })
}

export function getStationInfoListInMap (param) {
  return customAxios({
    url: '/light/getStationInfoListInMap',
    method: 'post',
    data: param
  })
}

export function getStationWayBillCount (param) {
  return customAxios({
    url: '/light/getStationWayBillCount',
    method: 'post',
    data: param
  })
}

export function getFeightCountList (param) {
  return customAxios({
    url: '/light/getFeightCountList',
    method: 'post',
    data: param
  })
}

export function getNewStationBillList (param) {
  return customAxios({
    url: '/light/getNewStationBillList',
    method: 'post',
    data: param
  })
}

export function getAllStationBillList (param) {
  return customAxios({
    url: '/light/getAllStationBillList',
    method: 'post',
    data: param
  })
}

export function getStationInfoListByPage (param) {
  return customAxios({
    url: '/light/getStationInfoListByPage',
    method: 'post',
    data: param
  })
}

// 场站点亮计划，获取场站当前已派单数据
export function getStationMainOrderList (param) {
  return customAxios({
    url: '/light/getStationMainOrderList',
    method: 'post',
    data: param
  })
}

//  场站点亮计划，获取各货运中心下的派单数据统计
export function getFrightMainOrderCountList (param) {
  return customAxios({
    url: '/light/getFrightMainOrderCountList',
    method: 'post',
    data: param
  })
}

//  顶部用户数据统计
export function freightCenterDataUser (param) {
  return customAxios({
    url: '/user/freightCenterData',
    method: 'post',
    data: param
  })
}

//  货运中心、场站数据列表
export function freightCenterDataLight (param) {
  return customAxios({
    url: '/light/getFreightCenterData',
    method: 'post',
    data: param
  })
}

//  场站品名占比
export function getStationPm (param) {
  return customAxios({
    url: '/light/getStationPm',
    method: 'post',
    data: param
  })
}
